CC = gcc
CXX = g++
CFLAGS = -O2 -Wall -pipe -fPIC

CFALGS += -I/usr/local/dao/include
LIBS += -L/usr/local/lib -ldao

LIBS += -lsqlite3

MYNAME= sqlite

OBJS= db.o sqlite.o

T= $(MYNAME).so

all:	$T

.cpp.o:
	$(CXX) -c $(CFLAGS) $<

.c.o:
	$(CC) -c $(CFLAGS) $<

so:	$T

$T:	$(OBJS)
	$(CC) $(LIBS) -shared -o $@ $(OBJS)

clean:
	rm -f $(OBJS) $T core core.*

depend:
	makedepend -Y -I. *.cpp *.c
